<?php 


// header("Content-type: text/html; charset=utf-8");     

// include './phpQuery.php'; 

// phpQuery::newDocumentFile('http://fly.layui.com/jie/11100/'); 

// echo pq(".detail h1")->html(); 

include './phpQuery.php'; 

// phpQuery::newDocumentFile('https://www.lagou.com/'); 

// $alist = pq(".pli_top .position_link");

// foreach($alist as $list){ 
//    echo pq($list)->html()."<br>"; 
// } 


// $alist = pq('.sidebar .menu_main a');

// foreach($alist as $list){ 
//    echo pq($list)->html()."<br>"; 
// }
// 
// 

$id = $_GET['id'];

for ($i=$id; $i < $id+3; $i++) {
	phpQuery::newDocumentFile('http://zhaopin.baidu.com/quanzhi?query=php'); 


	$alist = pq('.header .head-inner .cities a');

	foreach($alist as $list){ 
	   echo pq($list)->html()."<br>"; 
	}
}

$url = "./index.php?id=".($id+3);

// header('Location: http://www.example.com/');

 ?>
 <!doctype html>
 <html lang="en">
 <head>
 	<meta charset="UTF-8">
 	<title>Document</title>
 	 <meta http-equiv="refresh"content="1;URL=<?php echo $url ?>"/>
 </head>
 <body>
 	
 </body>
 </html>